package com.ifreeee.structure.mutablearray;

/**
 * 表示可变数组的 某个元素的 详细位置信息
 */
public class Coordinate {
    private int index;//下标
    private MutableArrayNode node;//节点

    public Coordinate()
    {}//无参构造

    public Coordinate(MutableArrayNode node, int index)
    {//有参构造
        this.node = node;
        this.index = index;
    }

    public int getIndex()
    {
        return this.index;
    }

    public void setIndex(int index)
    {
        this.index = index;
    }

    public MutableArrayNode getNode()
    {
        return this.node;
    }

    public void setNode(MutableArrayNode node)
    {
        this.node = node;
    }
}
